/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.job;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 企业收藏人才Entity
 * @author 罗天文
 * @version 2018-07-25
 */
public class HkUserEnterpriseCollection extends DataEntity<HkUserEnterpriseCollection> {
	
	private static final long serialVersionUID = 1L;
	private String resumeId;		// 用户简历id
	private HkUser user;		// 用户id
	private String state;		// 状态
	private String enterpriseId;		// 企业id
	
	public HkUserEnterpriseCollection() {
		super();
	}

	public HkUserEnterpriseCollection(String id){
		super(id);
	}

	@Length(min=0, max=32, message="用户简历id长度必须介于 0 和 32 之间")
	public String getResumeId() {
		return resumeId;
	}

	public void setResumeId(String resumeId) {
		this.resumeId = resumeId;
	}
	
	@NotNull(message="用户id不能为空")
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=32, message="企业id长度必须介于 0 和 32 之间")
	public String getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(String enterpriseId) {
		this.enterpriseId = enterpriseId;
	}
	
}